package com.block.datapush.special.api.utils;

import cn.hutool.core.util.StrUtil;
import com.block.common.enums.BaseTypeInfoEnum;

public class HaoHanUtil {

    public static String getSex(Integer sex) {
        if (sex.equals(1)){
            return "男";
        }
        return "女";
    }


    public static String getZhiMa(String zhimaScore) {
        if (StrUtil.equals(zhimaScore, BaseTypeInfoEnum.ZhimaScore.zm002.getValue())){
            return "599";
        }else if (StrUtil.equals(zhimaScore, BaseTypeInfoEnum.ZhimaScore.zm003.getValue())){
            return "649";
        }else if (StrUtil.equals(zhimaScore, BaseTypeInfoEnum.ZhimaScore.zm004.getValue())){
            return "699";
        }else if (StrUtil.equals(zhimaScore, BaseTypeInfoEnum.ZhimaScore.zm005.getValue())){
            return "750";
        }
        return "0";
    }

    public static String getGjj(String gjj) {
        if (StrUtil.equals(gjj, BaseTypeInfoEnum.Gjj.gjj002.getValue())){
            return "6个月以上";
        }else if(StrUtil.equals(gjj, BaseTypeInfoEnum.Gjj.gjj003.getValue())){
            return "6个月以上";
        }else if(StrUtil.equals(gjj, BaseTypeInfoEnum.Gjj.gjj004.getValue())){
            return "6个月以下";
        }
        return "无公积金";
    }


    public static String getShebao(String shebao){
        if (StrUtil.equals(shebao,BaseTypeInfoEnum.SocialInsurance.si002.getValue())){
            return "6个月以上";
        }else if(StrUtil.equals(shebao,BaseTypeInfoEnum.SocialInsurance.si003.getValue())){
            return "6个月以上";
        }else if(StrUtil.equals(shebao,BaseTypeInfoEnum.SocialInsurance.si004.getValue())){
            return "6个月以下";
        }
        return  "无社保";
    }

    public static String getXinyong(String xinyong){
        if (StrUtil.equals(xinyong,BaseTypeInfoEnum.Yuqi.yq001.getValue())){
            return "一年内有逾期";
        }
        return  "无逾期";
    }

    public static String getInsurance(String insurance){
        if (StrUtil.equals(insurance,BaseTypeInfoEnum.Insurance.in002.getValue())){
            return "投保两年以下";
        }else if(StrUtil.equals(insurance,BaseTypeInfoEnum.Insurance.in003.getValue())){
            return "投保两年以上";
        }else if(StrUtil.equals(insurance,BaseTypeInfoEnum.Insurance.in004.getValue())){
            return "投保两年以下";
        }
        return  "无";
    }

    public static String getHouse(String house){
        if (StrUtil.equals(house,BaseTypeInfoEnum.House.hu002.getValue())){
            return "有房（住房按揭中）";
        }
        return  "无房";
    }

    public static String getCar(String car){
        if (StrUtil.equals(car,BaseTypeInfoEnum.Car.car002.getValue())){
            return "有车（按揭中）";
        }
        return  "无车";
    }


    public static String getLoanAmount(String loanAmount){
        if (StrUtil.equals(loanAmount,BaseTypeInfoEnum.LoanAmount.la001.getValue())){
            return "3万";
        } else if (StrUtil.equals(loanAmount,BaseTypeInfoEnum.LoanAmount.la002.getValue())) {
            return "5万";
        } else if (StrUtil.equals(loanAmount,BaseTypeInfoEnum.LoanAmount.la003.getValue())) {
            return "10万";
        }else if (StrUtil.equals(loanAmount,BaseTypeInfoEnum.LoanAmount.la004.getValue())) {
            return "20万";
        }else if (StrUtil.equals(loanAmount,BaseTypeInfoEnum.LoanAmount.la005.getValue())) {
            return "25万";
        }
        return  "6万";
    }



    public static String getJob(String  job){
        if (StrUtil.equals(job,BaseTypeInfoEnum.Job.job001.getValue())){
            return "上班族";
        }else if(StrUtil.equals(job,BaseTypeInfoEnum.Job.job002.getValue())){
            return "企业主";
        }else if(StrUtil.equals(job,BaseTypeInfoEnum.Job.job003.getValue())){
            return "自由职业";
        }else if(StrUtil.equals(job,BaseTypeInfoEnum.Job.job004.getValue())){
            return "待业";
        }else if(StrUtil.equals(job,BaseTypeInfoEnum.Job.job005.getValue())){
            return "公务员/国企/事业单位";
        }

        return "上班族";
    }
}
